import React from 'react';
import { connect } from 'react-redux';
import AddCarModel from '../components/Home/communication/AddCarModel';

class AddCarModelContainer extends React.Component {
  render() {
    return (
      <AddCarModel {...this.props} />
    );
  }
}

export default connect((state) => {
  const {
    subBrand,
    carModels,
    carModel,
    carStyles,
    carStyle,
    compareCar,
    carInfo,
  } = state.CommunicateReducer;

  return {
    subBrand,
    carModels,
    carModel,
    carStyles,
    carStyle,
    compareCar,
    carInfo,
  };
})(AddCarModelContainer);
